home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global oldTime, firstTimeIn, topCrossH, topCrossV, topDown7H, topDown7V, topDown2H, topDown5V, topDown5H, topDown3V, topDown3H, topDown1V, topDown1H, mouseStartV, object1H, object1V, object2H, object2V, object3H, object3V, mouseStartH, mouseInitialH
- if firstTimeIn = "yes" then
- set topCrossH to the locH of sprite 9
- set topCrossV to the locV of sprite 9
- set topDown1H to the locH of sprite 2
- set topDown1V to the locV of sprite 2
- set topDown3H to the locH of sprite 4
- set topDown3V to the locV of sprite 4
- set topDown5H to the locH of sprite 6
- set topDown5V to the locV of sprite 6
- set topDown7H to the locH of sprite 8
- set topDown7V to the locV of sprite 8
- set object1V to the locV of sprite 12
- set object1H to the locH of sprite 12
- set object2V to the locV of sprite 13
- set object2H to the locH of sprite 13
- set object3V to the locV of sprite 14
- set object3H to the locH of sprite 14
- set mouseStartV to the mouseV
- set mouseStartH to the mouseH
- set mouseInitialH to the mouseH
- repeat with n = 1 to 15
- set the puppet of sprite n to 1
- end repeat
- set the puppet of sprite 27 to 1
- repeat with n = 12 to 14
- set the puppet of sprite n to 1
- end repeat
- startTimer()
- set oldTime to 0
- put the long time into field "theSeconds1"
- set mouseStartH to the mouseH
- set the locH of sprite 27 to the mouseH
- set the locV of sprite 27 to the mouseV
- set the soundLevel to 7
- set firstTimeIn to "no"
- end if
- end
-
- on mouseDown
- global calledFromInd
- if (the mouseCast = 34) and (calledFromInd = "not sen") then
- go("not sen")
- put "from on mouse down"
- else
- if the mouseCast = 34 then
- go("sen")
- end if
- end if
- end
-
- on exitFrame
- global oldTime, topCrossH, topCrossV, topDown7H, topDown7V, topDown5H, topDown5V, topDown3H, topDown3V, topDown1H, topDown1V, mouseStartV, mouseStartH, mouseInitialH, mouseShiftH
- set theMovementH to mouseStartH - the mouseH
- set mouseStartH to the mouseH
- set the locH of sprite 1 to the locH of sprite 1 + (theMovementH / 5) - 24
- set the locV of sprite 1 to the locV of sprite 1 + 40
- set the locH of sprite 2 to the locH of sprite 2 + (theMovementH / 5) - 24
- set the locV of sprite 2 to the locV of sprite 2 + 40
- set the locH of sprite 3 to the locH of sprite 3 + (theMovementH / 5) - 8
- set the locV of sprite 3 to the locV of sprite 3 + 40
- set the locH of sprite 4 to the locH of sprite 4 + (theMovementH / 5) - 8
- set the locV of sprite 4 to the locV of sprite 4 + 40
- set the locH of sprite 5 to the locH of sprite 5 + (theMovementH / 5) + 24
- set the locV of sprite 5 to the locV of sprite 5 + 40
- set the locH of sprite 6 to the locH of sprite 6 + (theMovementH / 5) + 24
- set the locV of sprite 6 to the locV of sprite 6 + 40
- set the locH of sprite 7 to the locH of sprite 7 + (theMovementH / 5) + 4
- set the locV of sprite 7 to the locV of sprite 7 + 40
- set the locH of sprite 8 to the locH of sprite 8 + (theMovementH / 5) + 4
- set the locV of sprite 8 to the locV of sprite 8 + 40
- set the locH of sprite 9 to the locH of sprite 9 - (theMovementH / 5)
- if the locV of sprite 9 > 300 then
- set the locV of sprite 9 to the locV of sprite 9 + 80
- else
- if the locV of sprite 9 > 230 then
- set the locV of sprite 9 to the locV of sprite 9 + 70
- else
- if the locV of sprite 9 > 170 then
- set the locV of sprite 9 to the locV of sprite 9 + 60
- else
- if the locV of sprite 9 > 70 then
- set the locV of sprite 9 to the locV of sprite 9 + 50
- else
- set the locV of sprite 9 to the locV of sprite 9 + 40
- end if
- end if
- end if
- end if
- set the locH of sprite 10 to the locH of sprite 10 - (theMovementH / 5)
- if the locV of sprite 10 > 300 then
- set the locV of sprite 10 to the locV of sprite 10 + 80
- else
- if the locV of sprite 10 > 230 then
- set the locV of sprite 10 to the locV of sprite 10 + 70
- else
- if the locV of sprite 10 > 170 then
- set the locV of sprite 10 to the locV of sprite 10 + 60
- else
- if the locV of sprite 10 > 70 then
- set the locV of sprite 10 to the locV of sprite 10 + 50
- else
- set the locV of sprite 10 to the locV of sprite 10 + 40
- end if
- end if
- end if
- end if
- set the locH of sprite 11 to the locH of sprite 11 - (theMovementH / 5)
- if the locV of sprite 11 > 300 then
- set the locV of sprite 11 to the locV of sprite 11 + 80
- else
- if the locV of sprite 11 > 230 then
- set the locV of sprite 11 to the locV of sprite 11 + 70
- else
- if the locV of sprite 11 > 170 then
- set the locV of sprite 11 to the locV of sprite 11 + 60
- else
- if the locV of sprite 11 > 70 then
- set the locV of sprite 11 to the locV of sprite 11 + 50
- else
- set the locV of sprite 11 to the locV of sprite 11 + 40
- end if
- end if
- end if
- end if
- set the locH of sprite 12 to the locH of sprite 12 - (theMovementH / 5)
- if the locV of sprite 12 > 300 then
- set the locV of sprite 12 to the locV of sprite 12 + 80
- else
- if the locV of sprite 12 > 230 then
- set the locV of sprite 12 to the locV of sprite 12 + 70
- else
- if the locV of sprite 12 > 170 then
- set the locV of sprite 12 to the locV of sprite 12 + 60
- else
- if the locV of sprite 12 > 70 then
- set the locV of sprite 12 to the locV of sprite 12 + 50
- else
- set the locV of sprite 12 to the locV of sprite 12 + 40
- end if
- end if
- end if
- end if
- set the locH of sprite 13 to the locH of sprite 13 - (theMovementH / 5) - 8
- if the locV of sprite 13 > 300 then
- set the locV of sprite 13 to the locV of sprite 13 + 80
- else
- if the locV of sprite 13 > 230 then
- set the locV of sprite 13 to the locV of sprite 13 + 70
- else
- if the locV of sprite 13 > 170 then
- set the locV of sprite 13 to the locV of sprite 13 + 60
- else
- if the locV of sprite 13 > 70 then
- set the locV of sprite 13 to the locV of sprite 13 + 50
- else
- set the locV of sprite 13 to the locV of sprite 13 + 40
- end if
- end if
- end if
- end if
- set the locH of sprite 14 to the locH of sprite 14 - (theMovementH / 5) + 4
- if the locV of sprite 14 > 300 then
- set the locV of sprite 14 to the locV of sprite 14 + 80
- else
- if the locV of sprite 14 > 230 then
- set the locV of sprite 14 to the locV of sprite 14 + 70
- else
- if the locV of sprite 14 > 170 then
- set the locV of sprite 14 to the locV of sprite 14 + 60
- else
- if the locV of sprite 14 > 70 then
- set the locV of sprite 14 to the locV of sprite 14 + 50
- else
- set the locV of sprite 14 to the locV of sprite 14 + 40
- end if
- end if
- end if
- end if
- set mouseShiftH to the mouseH - mouseInitialH
- checkForMorePavement()
- repeat while (oldTime + 5) > (the timer / 60)
- nothing()
- end repeat
- set the puppet of sprite 22 to 1
- set the castNum of sprite 22 to 16
- repeat with n = 23 to 26
- set the ink of sprite n to 4
- end repeat
- set the castNum of sprite 27 to 87
- set the ink of sprite 27 to 36
- puppetSound("Flash shot sound")
- set the backColor of sprite 22 to 0
- updateStage()
- set the locH of sprite 27 to the mouseH
- set the locV of sprite 27 to the mouseV
- set the castNum of sprite 22 to 32
- set the puppet of sprite 22 to 0
- repeat with n = 23 to 26
- set the ink of sprite n to 0
- end repeat
- set the castNum of sprite 27 to 29
- set the ink of sprite 27 to 6
- put the long time into field "theSeconds1"
- set oldTime to the timer / 60
- updateStage()
- go(the frame)
- end
-